<?php 
/* SVN FILE: $Id: menu.ctp 66 2007-12-09 01:07:36Z joe.vasquez $ */
/**
 * element for rendering action menus
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		elements
 * @since			0.1A
 * @version			0.1A  $Rev: 66 $
 * @lastmodified	$Date: 2007-12-09 01:07:36 +0000 (Sun, 09 Dec 2007) $
 * @license			http://www.gnu.org/licenses/gpl.html GNU General Public License
 */
?>
<?php if(strcmp($name,'default') != 0): ?>
<h3><?php echo $name; ?></h3>
<?php endif; ?>
<ul>
<?php foreach($actions as $actionItem): ?>
	<?php if(is_array($actionItem)): ?>
<li><?php echo $html->link(
	ucfirst(Inflector::Humanize($actionItem['title'])),
	$actionItem['url']
); ?></li>	
	<?php else: ?>
<li><?php echo $html->link(
	ucfirst(Inflector::Humanize($actionItem)),
	'/'.urlencode($actionItem)
); ?></li>
	<?php endif; ?>
<?php endforeach; ?>
</ul>